|
FIND LAST CHAR$
This command will find the last occurance of the specified character in the string.
Return Integer=FIND LAST CHAR$(source, char)
source
String
The source string
char
String
The character to find
The value returned is the index of the character found
a$="dark basic pro by lee bamber"
a=find first char$(a$,"l")
b=find last char$(a$,"a")
print a$
print "The first time the letter ( l ) was found, was at the position ",a," in the string "
print "The last time the letter ( a ) was found, was at the position ",b," in the string "
do
loop
TEXT Commands Menu
Index
|